package com.ruoyi.rural.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 防疫物资捐赠管理对象 rural_virus_prevention_materials_donate
 * 
 * @author ruoyi
 * @date 2022-02-17
 */
public class RuralVirusPreventionMaterialsDonate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private String id;

    /** 物资类型 */
    @Excel(name = "物资类型")
    private String materialType;

    /** 物资数量 */
    @Excel(name = "物资数量")
    private Long materialNumber;

    /** 捐赠人类型 */
    @Excel(name = "捐赠人类型")
    private String donorType;

    /** 捐赠人姓名 */
    @Excel(name = "捐赠人姓名")
    private String donorName;

    /** 捐赠人手机 */
    @Excel(name = "捐赠人手机")
    private String donorPhone;

    /** 捐赠时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "捐赠时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date donateDate;

    /** 捐赠状态 */
    @Excel(name = "捐赠状态")
    private String donateStatus;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setMaterialType(String materialType) 
    {
        this.materialType = materialType;
    }

    public String getMaterialType() 
    {
        return materialType;
    }
    public void setMaterialNumber(Long materialNumber) 
    {
        this.materialNumber = materialNumber;
    }

    public Long getMaterialNumber() 
    {
        return materialNumber;
    }
    public void setDonorType(String donorType) 
    {
        this.donorType = donorType;
    }

    public String getDonorType() 
    {
        return donorType;
    }
    public void setDonorName(String donorName) 
    {
        this.donorName = donorName;
    }

    public String getDonorName() 
    {
        return donorName;
    }
    public void setDonorPhone(String donorPhone) 
    {
        this.donorPhone = donorPhone;
    }

    public String getDonorPhone() 
    {
        return donorPhone;
    }
    public void setDonateDate(Date donateDate) 
    {
        this.donateDate = donateDate;
    }

    public Date getDonateDate() 
    {
        return donateDate;
    }
    public void setDonateStatus(String donateStatus) 
    {
        this.donateStatus = donateStatus;
    }

    public String getDonateStatus() 
    {
        return donateStatus;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("materialType", getMaterialType())
            .append("materialNumber", getMaterialNumber())
            .append("donorType", getDonorType())
            .append("donorName", getDonorName())
            .append("donorPhone", getDonorPhone())
            .append("donateDate", getDonateDate())
            .append("donateStatus", getDonateStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
